//: annotations/database/Member.java
package annotations.database;

/**
 * javabean书写
 */
@DBTable(name = "MEMBER")
public class Member {
  //30表示字段设计大小为30
  @SQLString(30) String firstName;
  @SQLString(50) String lastName;
  //使用默认值
  @SQLInteger Integer age;
  //这里的约束标注，采用自定义，不在默认
  @SQLString(value = 30,
  constraints = @Constraints(primaryKey = true))
  String handle;
  static int memberCount;
  public String getHandle() { return handle; }
  public String getFirstName() { return firstName; }
  public String getLastName() { return lastName; }
  public String toString() { return handle; }
  public Integer getAge() { return age; }
} ///:~
